GetEqualItems Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Enumerates all of the items in this bag that are equal to item, according to the comparison mechanism that was used when the bag was created. The bag is not changed.

If the bag does contain an item equal to item, then the enumeration contains no items.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public IEnumerable<T> GetEqualItems(
	T item
)
Visual Basic (Declaration)
Public Function GetEqualItems ( _
	item As T _
) As IEnumerable(Of T)
Visual C++
public:
IEnumerable<T>^ GetEqualItems (
	T item
)

Parameters

item
T
The item to search for.

Return Value

An IEnumerable<T> that enumerates all the items in the bag equal to item.

Remarks

Enumeration the items in the bag equal to item takes time O(log N + M), where N is the total number of items in the bag, and M is the number of items equal to item.

See Also